#include "bits/stdc++.h"
using namespace std;
using ll = long long;
const int N = 3; //100005

int a[N];
int gcd(int m,int n)
{
	if(n==0) return m;
	else return gcd(n,m%n);
}
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0),cout.tie(0);
	cin >> a[0] >> a[1] >> a[2];
	sort(a,a+3);
	int x = gcd(a[0],a[2]);
	a[0] /= x;
	a[2] /= x;
	cout << a[0] << "/" << a[2];
	return 0;
}
